﻿@{
    Layout = null;
    
     List<EnterpriseFund.Model.TaxClassAllowance> taxClassAllowanceList =  ViewData["taxClassAllowanceList"]==null?new List<EnterpriseFund.Model.TaxClassAllowance>(): ViewData["taxClassAllowanceList"] as List<EnterpriseFund.Model.TaxClassAllowance>;
     int sum = taxClassAllowanceList.Count + 1;
     int sum2 = taxClassAllowanceList.Count + 2;
     System.Data.DataTable showData = ViewData["showData"] == null ? new System.Data.DataTable() : ViewData["showData"] as System.Data.DataTable;
     }

<!DOCTYPE html>
 
<html>
<head>
    <title>JSummarySheet</title>
      @if (false)
       {
        <script src="../../Scripts/jquery-vsdoc.js" type="text/javascript"></script>
        <script src="../../Scripts/ASPxScriptIntelliSense.js" type="text/javascript"></script>
       }
    <link href="@Url.Content("~/Content/Site.css", true)" rel="stylesheet" type="text/css" />

    <link href="@Url.Content("~/Content/jquery-ui.css", true)" rel="stylesheet" type="text/css" />

    <script src="@Url.Content("~/Scripts/jquery.min.js", true)" type="text/javascript"></script>

    <script src="@Url.Content("~/Scripts/jquery-ui.min.js", true)" type="text/javascript"></script>

    <script src="@Url.Content("~/Scripts/FloatDiv.js", true)" type="text/javascript"></script>

    <script src="@Url.Content("~/Scripts/regex.js", true)" type="text/javascript"></script>

    <script src="@Url.Content("~/Common/GetRootPath.ashx", true)" type="text/javascript"></script>
   
    @Html.DevExpress().GetStyleSheets(

        new StyleSheet { ExtensionType = ExtensionType.ListBox, Theme = DevExpressHelper.Theme }
)
    @Html.DevExpress().GetScripts(
        new Script { ExtensionType = ExtensionType.ListBox }
)
 <style>
    .tableStyle
{
	width: 100%;
	border: solid 1px black;
		padding: 6px 5px;
	border-collapse: collapse;
}
.tableStyle td
{
}

.tableStyle .tdClass
{
	padding: 0px;
  padding: 6px 5px;
	border: solid 1px black;
	white-space: nowrap;
}
.tableStyle th
{
	text-align: right;
	padding: 6px 5px;
	border: solid 1px black;
}
.tableStyle .button
{
	margin: 2px 0px 0px 2px;
	float: left;
}

text{border:1px solid #aecaf0;}

    </style>
        <script>
            var pre;
            function selectArow(sObject) {
                $(sObject).attr("style", "BACKGROUND-COLOR: #e0f2ff");
                if (pre != null && pre != sObject) {
                    $(pre).attr("style", "BACKGROUND-COLOR: white");
                }
                pre = sObject;
            }
</script>
</head>
<body>

      <table width="2000">
    <tr>
    <td align="center">
    <h1>大榭开发区重点税源税收入库情况表</h1>
    </td>
    <td>
    </td>
    </tr>
    <tr>
    <td align="center">
    制表日期：@DateTime.Now.ToString("yyyy年MM月dd日")
    </td>
        <td>
    （金额单位:万元）
    </td>
    </tr>
    </table>
     
    <table class="tableStyle">
    <tr>
    <td rowspan='2' class="tdClass" align="center">片区</td>
    <td colspan='7' class="tdClass" align="center">税收收入</td>
       <td colspan='7' class="tdClass" align="center">营业税</td>
       <td colspan='7' class="tdClass" align="center">城建税</td>
       <td colspan='7' class="tdClass" align="center">个人所得税</td>
       <td colspan='7' class="tdClass" align="center">企业所得税</td>
    </tr>
    <tr >
     <td class="tdClass" align="center">本期数</td>
     <td class="tdClass" align="center">上年同期</td>
     <td class="tdClass" align="center">同比%</td>
     <td class="tdClass" align="center">累计数</td>
     <td class="tdClass" align="center">上年累计数</td>
     <td class="tdClass" align="center">同比%</td>
     <td class="tdClass" align="center">上年实际</td>
     <td class="tdClass" align="center">本期数</td>
     <td class="tdClass" align="center">上年同期</td>
     <td class="tdClass" align="center">同比%</td>
     <td class="tdClass" align="center">累计数</td>
     <td class="tdClass" align="center">上年累计数</td>
     <td class="tdClass" align="center">同比%</td>
     <td class="tdClass" align="center">上年实际</td>
     <td class="tdClass" align="center">本期数</td>
     <td class="tdClass" align="center">上年同期</td>
     <td class="tdClass" align="center">同比%</td>
     <td class="tdClass" align="center">累计数</td>
     <td class="tdClass" align="center">上年累计数</td>
     <td class="tdClass" align="center">同比%</td>
     <td class="tdClass" align="center">上年实际</td>
     <td class="tdClass" align="center">本期数</td>
     <td class="tdClass" align="center">上年同期</td>
     <td class="tdClass" align="center">同比%</td>
     <td class="tdClass" align="center">累计数</td>
     <td class="tdClass" align="center">上年累计数</td>
     <td class="tdClass" align="center">同比%</td>
     <td class="tdClass" align="center">上年实际</td>
     <td class="tdClass" align="center">本期数</td>
     <td class="tdClass" align="center">上年同期</td>
     <td class="tdClass" align="center">同比%</td>
     <td class="tdClass" align="center">累计数</td>
     <td class="tdClass" align="center">上年累计数</td>
     <td class="tdClass" align="center">同比%</td>
     <td class="tdClass" align="center">上年实际</td>
    </tr>
    @for (int i = 0; i < showData.Rows.Count; i++)
    {
        <tr onclick="selectArow(this)">
        @foreach (System.Data.DataColumn dc in showData.Columns)
        {
            if (dc.ColumnName != "xh")
            {
                
                decimal d = 0;
                if (decimal.TryParse(showData.Rows[i][dc.ColumnName].ToString(), out d))
                {
                   @* if (d == 0)
                    {
                      <td class="tdClass" align="right"></td> 
                    }
                    else
                    {*@
                    if(dc.ColumnName.Contains("bl"))
                    {
                               <td class="tdClass" align="right">@decimal.Round(decimal.Parse(showData.Rows[i][dc.ColumnName].ToString()))</td> 
                    }
                    else
                    {
                  <td class="tdClass" align="right">@showData.Rows[i][dc.ColumnName]</td> 
                    }

                    //}
                }
                else
                {
                    <td class="tdClass" align="left">@showData.Rows[i][dc.ColumnName]</td> 
                }
            }
        }
        </tr> 
    }
    </table>
     @Html.Hidden("hidy",ViewData["y"])
     @Html.Hidden("hidm",ViewData["m"])
</body>
</html>
